<!-- $Id: mshop_info.htm 14361 2008-04-07 09:26:17Z zhuwenyuan $ -->
{include file="pageheader.htm"}
<script type="text/javascript" src="../js/calendar.php?lang={$cfg_lang}"></script>
<style>
.span_info{  padding-left: 10px; cursor:pointer;}
 .span_info a{    color: #666;
    font-size: 12px;
    font-weight: 400;
    text-decoration: none;
    padding: 2px 5px 2px 5px;
    border: 1px solid #278296;
    border-right: 2px solid #278296;
    border-bottom: 2px solid #278296;
    background: #DDEEF2 url(../images/icon_add.gif) no-repeat 3px center;
}}
</style>
<link href="../js/calendar/calendar.css" rel="stylesheet" type="text/css" />
{insert_scripts files="validator.js,../js/transport.js}
<div class="main-div">
<form method="post" action="mshop.php" name="theForm" enctype="multipart/form-data" onSubmit="return validate()">
<table cellspacing="1" cellpadding="3" width="100%">

  <tr>
    <td class="label">会员名称：</td>
    <td><input  type="text" id="mshop_user_name" id="mshop_user_name" value="{$mshop.user_name}" size="40" readonly="readonly"/>
    <input name="mshop_user_id" type="hidden" id="mshop_user_id" value="{$mshop.user_id}" size="40" readonly="readonly"/>
    {if $is_chose_user}
    <span class="span_info"><a onclick="window.open('users.php?act=list&chose_user=1','choseUser','height=500,width=800,top=120,left=100,toolbar=no,menubar=no,scrollbars=no, resizable=no,location=no, status=no');" target="_blank">选择会员</a></span>
    {/if}
    </td>
  </tr>


  <tr>
    <td class="label">{$lang.cat_names}</td>
    <td>{foreach from=$mshop.cats item=cat}<input type="checkbox" id='cats' name="cats[]" value="{$cat.cat_id}" {if !$cat.no_selected}checked="true"{/if} />{$cat.cat_name} {/foreach}</td>
  </tr>
  <tr>
    <td class="label">{$lang.mshop_pname}：</td>
    <td><input name="p_user_name" type="text" id="p_user_name" value="{$mshop.p_user_name}" readonly="readonly">
        <input name="mshop_pid" type="hidden" id="mshop_pid" value="{$mshop.mshop_pid}" readonly="readonly">

    <span class="span_info"><a onclick="window.open('mshop.php?act=list&chose_pid=1','choseParentMshop','height=500,width=800,top=120,left=100,toolbar=no,menubar=no,scrollbars=no, resizable=no,location=no, status=no');" target="_blank">选择{$lang.mshop_pname}</a></span>
    
    </td>
  </tr> 
  
  <tr>
    <td class="label">{$lang.sum_profit}</td>
    <td><input name="sum_profit" type="text" id="sum_profit" value="{$mshop.sum_profit}"></td>
  </tr> 
  <tr>
    <td colspan="2" align="center">
      <input type="submit" class="button" value="{$lang.button_submit}" />
      <input type="reset" class="button" value="{$lang.button_reset}" />
      <input type="hidden" name="act" value="{$form_action}" />
      <input type="hidden" name="id" value="{$mshop.mshop_id}" />    </td>
  </tr>
</table>
</form>
</div>

{literal}
<script language="JavaScript">
<!--
onload = function()
{
    // 开始检查订单
    startCheckOrder();
//    changeRange(document.forms['theForm'].elements['act_range'].value);
//    changeType(document.forms['theForm'].elements['act_type'].value);
}
/**
 * 检查表单输入的数据
 */
function validate()
{
    validator = new Validator("theForm");
    validator.required('mshop_user_name', '店主不能为空！');

    validator.isNumber('sum_profit', '佣金必须是数字。', true);
	validator.isNumber('parent_phone', '手机格式不对。', true);
    return validator.passed();
}



</script>
{/literal}
{include file="pagefooter.htm"}
